using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class MusicBtnController : MonoBehaviour
{
    private SpriteRenderer SR;

    //public Sprite defaultImg;
    //public Sprite pressedImg;

    public KeyCode keyToPreese;
    public Color defaulColor;
    public Color pressColor;


    void Start()
    {
        SR = GetComponent<SpriteRenderer>();
    }

   
    void Update()
    {
        if (Input.GetKeyDown(keyToPreese))
        {
            //SR.sprite = pressedImg;
            SR.color = pressColor;

        }
        if (Input.GetKeyUp(keyToPreese))
            //SR.sprite = defaultImg;
            SR.color = defaulColor;
    }
}
